from .RTFMLoss import RTFM_loss


def generate_loss(**config):
    loss = config.pop('name')
    loss = eval(loss)(**config)
    return loss

if __name__ == '__main__':
    generate_loss(**{
        "name": "RTFM_loss",
        "batch_size": 32
    })